package com.ebring.shareEducation.dao;

import com.ebring.shareEducation.bean.UserReviews;
import com.ebring.shareEducation.bean.response.UserReleaseReviews;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface UserReviewsMapper extends Mapper<UserReviews> {
    List<UserReleaseReviews> selectReleaseUsers(@Param("userId")String userId,@Param("state")int state,@Param("end")int end);

    List<UserReleaseReviews>  selectUserTalentByIdUsers(@Param("userId")String userId,@Param("state")int state,@Param("end")int end);

    List<UserReleaseReviews>  SelectReviewsGrade(@Param("userId")String userId);

    Double selectavg(@Param("userId")String userId,@Param("role")String role);

    List<UserReviews> selectavgsss(@Param("userId")String userId,@Param("role")String role ,@Param("state")int state,@Param("ends")int ends);
}
